home *** CD-ROM | disk | FTP | other *** search
/ EuroCD 3 / EuroCD 3.iso / Programming / Amos / AMOSList-1297 / AMOSLIST / text0136.txt < prev    next >
Encoding:
Text File  |  1998-06-24  |  1.8 KB  |  55 lines

  1. On 13-Dic-97, Mush wrote: Re: GUI extension..
  2.  
  3.  
  4. >-> 3) There's a slight bug in 'Gui Asl', if I pad the path with '/' (like
  5. >->    'ab3:includes/' then the returned filename holds two '/' in row 
  6. >->    ('ab3:includes//test.lnk') and the file can't be found by amos..
  7.  
  8. >Yes, I fixed this problem in one of my examples for the next release of the
  9. >extension. Le,mme get the code...
  10.  
  11. >   If A=9
  12. >      ' Grab a file from the user
  13. >      Do 
  14. >         F$=Gui Asl$("Pick a List of Email
  15. recipients..."+Chr$(0),Dir$,"",Chr$(0))
  16. >         F$=Gui Dir$
  17. >
  18. >         If Mid$(F$,Len(F$),1)<>"/" and Mid$(F$,Len(F$),1)<>":" : F$=F$+"/" :
  19.  
  20.  
  21. is better:
  22.  
  23. If Right$(F$,1)><"/" and Right$(F$,1)><":" : F$=F$+"/" : EndIf :)))
  24.  
  25.  
  26. >This is the code I use in my MPDMailpostV2 routine, and it handles it all
  27. >fine. It also handles the bug for when you change directorys, as it will
  28. >only add the / onto the end if it really needs it.
  29.  
  30. >Any other questions, just ask!
  31.  
  32. Any other bugs... just ask :) Now the bug is fixed, and Gui Asl$ works
  33. fine in all the situations ;)
  34.  
  35.  
  36. -- 
  37.  
  38.  
  39. Bye!
  40.  
  41.  
  42.                                      !!!
  43.                                      o o
  44.    +-----------------------------oOO-(_)-OOo----------------------------+
  45.    |                                                                    |
  46.    |  Pietro Ghizzoni - Dairymen Soft              __  /// Amiga 12OO   |
  47.    |     E-Mail:  ghizzo@agonet.it                 \\\/// 'O3O  5OMhz   |
  48.    |            Team AMIGA                          \/// 18MB - CD4x    |
  49.    |                                                                    |
  50.    | Amos Professional Team Coordinator               AMIGA RULEZ!!     |
  51.    |                                                                    |
  52.    +--------------------------------------------------------------------+
  53.  
  54.  
  55.